(:: pragma bea:global-element-parameter parameter="$submitOrder1" element="ns0:SubmitOrder" location="../WSDLs/SubmitOrder.wsdl" ::)
(:: pragma bea:global-element-return element="ns1:getGroupId" location="../WSDLs/mockGetGroupIdSF.wsdl" ::)

declare namespace ns1 = "http://www.example.org/mockGetGroupIdSF/";
declare namespace ns0 = "http://www.example.org/SubmitOrder/";
declare namespace xf = "http://tempuri.org/ActivateNewCustomer/Transformation/test/";

declare function xf:test($submitOrder1 as element(ns0:SubmitOrder))
    as element(ns1:getGroupId) {
        <ns1:getGroupId>
            <realm>{ data($submitOrder1/realm) }</realm>
        </ns1:getGroupId>
};

declare variable $submitOrder1 as element(ns0:SubmitOrder) external;

xf:test($submitOrder1)